<template>
  <div class="about">
    <h1>This is an about page</h1>
    <h1>总价格：{{$store.getters.getPrice}}</h1>
    <h1>user模块的数据：{{$store.state.user.num}}</h1>
    <h1>order模块的数据：{{$store.state.order.num}}</h1>
    <!-- <h1>user模块的数据：{{$store.state.user.message}}</h1>
    <h1>order模块的数据：{{$store.state.order.msg}}</h1> -->
    <button @click="add">触发mutations方法</button>
  </div>
</template>
<script>
export default {
    data() {
        return {
            
        }
    },
    methods: {
       add(){
        // this.$store.commit('user/addNum')
        // this.$store.commit('order/addNum')
       } 
    },
}
</script>
